package site.jlopen.service.intf.oss;

import org.springframework.web.multipart.MultipartFile;

import site.jlopen.assets.oss.AwsOssConfig;
import site.jlopen.entity.BaseResponse;
import site.jlopen.entity.file.FileUploadRes;

public interface OssService {
	
	public BaseResponse<String> checkBucketExists(AwsOssConfig awsOssConfig, String bucketName);

	public boolean checkObjectExists(AwsOssConfig awsOssConfig, String bucketName, String objectKey);
	
	public BaseResponse<FileUploadRes> upload(MultipartFile file, AwsOssConfig ossConfig, String bucket, String prefix,String fileDir, String fileName);
}
